<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        ul {
            list-style-type: none;
            cursor: pointer;
        }
    </style>
    <script src="jquery-3.3.1.min.js"></script>
    <script>
        $(function(){
            // 高亮显示效果：鼠标进入 当前li有背景颜色 离开就无背景颜色
            // 获取ul中所有的li标签，添加鼠标点击事件和离开事件
            $("#uu>li").mouseenter(function(){
                $(this).css("backgroundColor","red"); 
            }).mouseleave(function(){
                $(this).css("backgroundColor","");
            }).click(function(){
                $(this).css({"color":"green","fontSize":"30px","fontFamily":"全新硬笔行书简"});
            })
        })
       
    </script>
</head>
<body>
    <ul id="uu">
        <li>1</li>
        <li>3</li>
        <li>2</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
    </ul>
</body>
</html>